package com.yld.scott.ch13;



/**
 * value属性是所有注解的默认属性  如果你只设定value属性的值的时候 value 可以省略
 * @author apples
 *
 */
@ScottController(value ="哈士奇")
public class Dog {
	
	@ScottController(value ="哈士奇")
	private int age;
	
	
	private String name;
	

	public Dog(@ScottController(value ="哈士奇") int age) {
		this.age = age;
	}


	public Dog(String name) {
		this.name = name;
	}

	@ScottController(value ="哈士奇")
	public Dog(int age, String name) {
		this.age = age;
		this.name = name;
	}


	@Override
	public String toString() {
		return "Dog [age=" + age + ", name=" + name + "]";
	}
	
	
	
	
	
	
	
	
	

}
